const path={
  // ==================== 用户模块 ====================
  login: 'api/user/login',
  smsLogin: 'api/user/sms-login',
  sendPhoneCode: 'api/user/send-sms-code',
  register: 'api/user/register',
  getUserInfo: 'api/user/info',
  updateUser: 'api/user/update',
  uploadHead: 'api/user/uploadHead',
  getUserBaseCount: 'api/user/baseInfoCount',

  // ==================== 房源模块 ====================
  getHouseList: 'api/house/list',
  //发布房源
  publishHouse: 'api/house/publish',
  //更新房源
  updateHouse: 'api/house/update',
  deleteHouse: 'api/house/', // 需要拼接ID
  getHouseDetail: 'api/house/', // 需要拼接ID
  searchHouse: 'api/house/search',
  uploadHousePic: 'api/pic/upload',
  getPicList: 'api/pic/list',
  auditHouse: 'api/house/audit',
  //房主自己发布的房源，管理通过这个接口查到待审核的房源
  myHouseResource:'api/house/pending',

  // ==================== 预约模块 ====================
  //看房预约
  createAppointment: 'api/appointment/create',
  getMyAppointments: 'api/appointment/myList',
  getLandlordAppointments: 'api/appointment/landlordList',
  handleAppointment: 'api/appointment/handle',
  cancelAppointment: 'api/appointment/cancel',
  getAppointmentDetail: 'api/appointment/', // 需要拼接ID

  // ==================== 申请模块 ====================
  //租房申请
  createApply: 'api/apply/create',
  getMyApplies: 'api/apply/myList',
  getLandlordApplies: 'api/apply/landlordList',
  handleApply: 'api/apply/handle',
  cancelApply: 'api/apply/cancel',
  getApplyDetail: 'api/apply/', // 需要拼接ID

  // ==================== 收藏模块 ====================
  addCollection: 'api/collection/add',
  removeCollection: 'api/collection/', // 需要拼接houseId
  checkCollection: 'api/collection/check/', // 需要拼接houseId
  getMyCollections: 'api/collection/myList',

  // ==================== 消息模块 ====================
  getMessageList: 'chat/getMessagesList',
  getChatMessages: 'chat/getMessages',
  setChatUser: 'chat/setChatUser',
  clearChatUser: 'chat/clearChatUser',
  sendSystemMessage: 'systemMessage/sendMsgToUser',

  // ==================== WebSocket ====================
  websocket: 'chat', // WebSocket连接

  // ==================== 图片上传 ====================
  uploadPic: 'api/pic/upload',
  deletePic: 'api/pic/', // 需要拼接ID
}

module.exports={
  path
}